<?php


namespace App\Http\Requests\Api;


use App\Http\Requests\BaseFormRequest;
use App\Models\System\User;
use Illuminate\Validation\Rule;

class RegisterRequest extends BaseFormRequest
{
    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {
        $roles = [
            'nickname' => ['required'],
            'password' => ['required'],
            'phone_number' => ['required'],
        ];
        return $roles;
    }


    public function messages()
    {
        return [
            'nickname.required' => '请输入昵称',
            'password.required' => '请输入密码',
            'phone_number.captcha' => '请输入电话号码'
        ];
    }
}
